package com.wertop.viid.common.constant;

/**
 * @Description Constant
 * @Author yempty
 * @Date 2020/5/14 11:09
 */
public class Constants {
    /**
     * 请求头token属性值
     */
    public static final String TOKEN_HEADER = "Authorization";

    /**
     * token过期时长，5分钟后过期  5 * 60 * 1000
     */
    public final static Long TOKEN_EXPIRE = 300000L;

    /**
     * token缓存，定时清理时间1s  1 * 1000
     */
    public final static Long TOKEN_CLEAN_DELAY = 1000L;

    /**
     * 请求头-用户身份，值为DeviceID的value
     */
    public static final String USER_IDENTIFY = "User-Identify";
    /**
     * 请求头-授权标识
     */
    public static final String AUTHORIZATION = "Authorization";
    /**
     * 第一次请求 nonce 的值
     */
    public static final String FIRST_NONCE = "00000001";
}
